{% extends '::backend.html.twig' %}
{% block contenido %}
             {% include 'BackendBundle:Default:flashAlerts.html.twig'%}

 <form class="form-horizontal"  action="{{ path('catedra_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    <fieldset>
        {{ form_widget(edit_form._token) }}           
        <legend>Editar Cátedra: "{{ entity}}"</legend>
        {# {% if errors|length > 0 %}
            <div class="alert alert-error">
                {{ form_errors(edit_form) }}
            </div>
        {% endif %} #}
        <div class="control-group">
            <label class="control-label required">Nombre</label>
              {#  {{ form_errors(edit_form.nombre) }} #}
            <div class="controls">
                {{ form_widget(edit_form.nombre) }}
            </div>
        </div>
         <div class="form-actions">
                <button type="submit" class="btn btn-success">
                    <i class="icon-ok icon-black"></i> Aceptar
                </button>
                <a class="btn btn-danger " href="{{ path('catedra') }}">
                    <i class="icon-remove icon-black"></i> Cancelar
                </a>
            </div>
    </fieldset>
</form>        
{% endblock %}
